package com.future.wxapp.pedometer.dao;

import com.alibaba.fastjson.JSONObject;
import com.future.wxapp.common.config.MyMapper;
import com.future.wxapp.pedometer.domain.Chicken;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ChickenDao extends MyMapper<Chicken> {
    Integer totalChicken();

    List<JSONObject> typeSaleStatistics(@Param("quarterStart") Date quarterStart, @Param("quarterEnd") Date quarterEnd);

    List<JSONObject> monthOldSale();
}